package com.decapre.zufangwang.repository;

import com.decapre.zufangwang.entity.House;


import com.decapre.zufangwang.entity.dto.SearchParamDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HouseRepository {

    List<House> getAllHouses();

    List<House> getHousesByHouseIds(
             List<Integer> houseIds
    );

    List<Integer> getHouseIdsByParams(
            @Param("districts") List<Integer> districts,
            @Param("bedroomCount") int bedroomCount,
            @Param("livingroomCount") int livingroomCount,
            @Param("washroomCount") int washroomCount,
            @Param("minPrice") int minPrice,
            @Param("maxPrice") int maxPrice
            );
}
